package cn.hrc.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MarkInfo {
    private int id;
    private User user;
    private Clz clz;
    private Course course;
    private double score;
    private Date tpost;
    private int tid;

    @Override
    public String toString() {
        return "MarkInfo{" +
                "id=" + id +
                ", user=" + user +
                ", clz=" + clz +
                ", course=" + course +
                ", score=" + score +
                ", tpost=" + tpost +
                ", tid=" + tid +
                ", sdf=" + sdf +
                "}\n";
    }

    public Clz getClz() {return clz;}
    public void setClz(Clz clz) {this.clz = clz;}
    public int getId() {return id;}
    public void setId(int id) {this.id = id;}
    public int getTid() {return tid;}
    public void setTid(int tid) {this.tid = tid;}
    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }
    public Course getCourse() {
        return course;
    }
    public void setCourse(Course course) {
        this.course = course;
    }
    public Double getScore() {
        return score;
    }
    public void setScore(Double score) {
        this.score = score;
    }
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    public Date getTpost() {return tpost;}
    public void setTpost(Date tpost) {this.tpost = tpost;}
}
